package com.itheima.Thraed.CreateThread;

public class demo02 {
    public static void main(String[] args) {
        Runnable r = new Runnable() {
            @Override
            public void run() {
                System.out.println("main thread started");
            }
        };

        Thread t = new Thread(r, "demo02");
        t.start();

    }
}
